package string;
/** int length():
 * 获取字符串长度（字符个数） */
public class LengthDemo {
    public static void main(String[] args) {
        String str = "你爱java!";
        int len = str.length();
        System.out.println(len);
    }
}
